﻿@model IEnumerable<KRM.Core.vWebDriverDeliveredOrder>
@{
    ViewBag.Title = "Driver Delivery Report";
    Layout = "~/Views/Shared/_Layout.cshtml";
}

<div class="container-fluid">
    <div class="page-header"></div>
    <div class="row-fluid">
        <table class="table table-bordered table-fix tbl-selected krmtable" data-height="300">
            <thead>
                <tr>
                    <th>Driver</th>
                    <th>Using App</th>
                    <th>Delivered Orders</th>
                    <th>Photos</th>
                    <th>Percentance</th>
                </tr>
            </thead>
            <tbody>
                @foreach (var item in Model)
                {
                    <tr>
                        <td>@item.DriverName</td>
                        <td>@item.UsingApp</td>
                        <td>@item.DeliveredOrders</td>
                        <td>@item.Photos</td>
                        <td>@((item.Photos / item.DeliveredOrders) * 100)</td>
                    </tr>
                }
            </tbody>
        </table>
    </div>
</div>

